package com.jiawa.train.batch.feign;


import com.jiawa.train.common.resp.CommonResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

@FeignClient(name = "train-business",fallbackFactory = BusinessFeignFallBack.class)
public interface BusinessFeign {

    @GetMapping("/business/admin/daily-train/daily/{date}")
    CommonResp<Object> generate(@PathVariable @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);

}